import service from '../utils/request'

//Cart____________________________________________________7

//加入购物车
export function cart_add(obj={}){
    return service.post('/api/cart/add',obj)
}
//查看购物车
export function cart_list(obj={}){
    return service.post('/api/cart/list',obj)
}
//删除当前用户的购物车数据
export function cart_removeall(obj={}){
    return service.post('/api/cart/removeall',obj)
}
//删除购物车单条数据
export function cart_remove(obj={}){
    return service.post('/api/cart/remove',obj)
}
//更新购物车数量
export function cart_updatenum(obj={}){
    return service.post('/api/cart/updatenum',obj)
}
//更新所有购物车选中状态
export function cart_selectall(obj={}){
    return service.post('/api/cart/selectall',obj)
}
//更新当前购物车选中状态
export function cart_selectone(obj={}){
    return service.post('api/cart/selectone',obj)
}
